﻿<%@ Page Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/admin.master"  Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Areas.Administrator.Models.Admin>"%>

<asp:Content runat="server" id="MainContent" ContentPlaceHolderID="MainContent" Visile="false">
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Create New Administrator Account</legend>
            
          <div class="editor-label">
                <%= Html.LabelFor(model => model.UserName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UserName) %>
                <%= Html.ValidationMessageFor(model => model.UserName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.PassWord) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PassWord) %>
                <%= Html.ValidationMessageFor(model => model.PassWord) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.AdminName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.AdminName) %>
                <%= Html.ValidationMessageFor(model => model.AdminName) %>
            </div>
        
            <p>
                <input type="submit" value="Create New" class="btn"/>
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>
